<template>
	<view class="">
		<rich-text type="text" :nodes="content"></rich-text>
	</view>
</template>

<script>
	import {
		systemConfig
	} from "@/api/api.js"
	var graceRichText = require("../../static/richText.js");
	export default {
		data() {
			return {
				content: "",
			}
		},
		onLoad() {
			this.handleGetContent()
		},
		methods: {
			async handleGetContent() {
				let res = await systemConfig()
				console.log("隐私协议", res)
				this.content = graceRichText.format(res.data.user_agreement)
			},
		}
	}
</script>

<style scoped lang="scss">
</style>